From: | David McMinn |
Date: | 5 May 2001 at 14:32:26 |
Subject: | Re: File Creating&Reading |
> If OpenFile(0,"text")
If you are only writing to the file, best use If WriteFile(0,"text").
> CloseFile 0
And you should put a PopOutput here (not always necessary, but at least
you can get output after you finish this :) which will set the output to
where it was before the FileOutput 0.
> a$=Edit$(Lof(0))
I wouldn't recommend using Lof(0) to set the length of your read buffer.
If you have no line breaks in the file, you will end up with the entire
file in the string.
But your code looks OK, so unless I missed something it must be the full
version of your code does something different.
|) /\ \/ ][ |) |\/| c |\/| ][ |\| |\| | dave@blitz-2000.co.uk
http://members.nbci.com/david_mcminn | ICQ=16827694
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list/-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list/-help@netsoc.ucd.ie